package projectiles;

import java.awt.Dimension;
import java.awt.geom.Point2D;

import javax.swing.ImageIcon;

import core.ShootingUnit;

/**
 * @author onbekend
 * @version 1.1
 * @since 2011-04-11
 */
public class Cannonball extends Projectile {

	private static final ImageIcon image = new ImageIcon("images/cannonball.gif");
	private static final int damage = 10;
	private static final int speed = 750;

	/**
	 * 
	 * @param origin het beginpunt
	 * @param position de positie
	 * @param viewAngle de richting van het projectiel
	 * @param destination het eindpunt
	 */
	/* /// Constructor //////////////////////////////////////// */
	public Cannonball(ShootingUnit origin, Point2D.Double position, int viewAngle, Point2D.Double destination) {
		super(origin, position, viewAngle, new Dimension(Cannonball.image.getIconWidth(),
				Cannonball.image.getIconHeight()), Cannonball.image, Cannonball.damage, destination, Cannonball.speed);
	}

}
